<?php /* Smarty version 2.6.14, created on 2014-11-10 13:50:00
         compiled from acl.index.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<form action="/acl/delete" method="POST" <?php if ($this->_tpl_vars['is_validator']): ?> id="adminform" onsubmit="return Validator.Validate(this)" <?php endif; ?>>
<table width="100%" cellspacing="0" border="0" class="adminlist">
	<thead>
    	<tr>
        	<th><input id="toggle" type="checkbox" value="" /></th>
        	<th><?php echo $this->_tpl_vars['systemLang']['moduleName']; ?>
</th>
        	<th><?php echo $this->_tpl_vars['systemLang']['moduleMark']; ?>
</th>
        	<th><?php echo $this->_tpl_vars['systemLang']['subWay']; ?>
</th>
        	<th><?php echo $this->_tpl_vars['systemLang']['operate']; ?>
</th>
        </tr>
    </thead>
    <tbody>
    	<?php $_from = $this->_tpl_vars['aclTree']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['a'] => $this->_tpl_vars['tmp']):
?>
        <tr class="row0" title='<?php echo $this->_tpl_vars['tmp']['acl_desc']; ?>
'>
        	<td><input name="select_id[]" type="checkbox" class="checkbox" id="cb<?php echo $this->_tpl_vars['a']++; ?>
" value="<?php echo $this->_tpl_vars['tmp']['acl_id']; ?>
"/></td>
            <td>&nbsp;<?php echo $this->_tpl_vars['tmp']['acl_name']; ?>
</td>
        	<td>&nbsp;<?php echo $this->_tpl_vars['tmp']['acl_value']; ?>
</td>
        	<td>&nbsp;<?php echo $this->_tpl_vars['tmp']['acl_children']; ?>
</td>
        	<td>
             <a href="<?php echo @BASEURI; ?>
acl/edit/<?php echo $this->_tpl_vars['tmp']['acl_id']; ?>
"><?php echo $this->_tpl_vars['systemLang']['edit']; ?>
</a>&nbsp;
             <a href="<?php echo @BASEURI; ?>
acl/delete/<?php echo $this->_tpl_vars['tmp']['acl_id']; ?>
" onclick="return confirm('<?php echo $this->_tpl_vars['systemLang']['confirmDel']; ?>
')" "<?php echo @IS_DELETE; ?>
><?php echo $this->_tpl_vars['systemLang']['del']; ?>
</a>
            </td>
        </tr>
      <?php endforeach; endif; unset($_from); ?>
    </tbody>
	<tr>
       	<td colspan="6"><input type="button" class="button" name="subsmit" value="<?php echo $this->_tpl_vars['systemLang']['del']; ?>
" onclick="select_control('<?php echo @BASEURI; ?>
acl/delete','<?php echo $this->_tpl_vars['systemLang']['confirmDel']; ?>
')" /></td>
    </tr>
</table>
</form>
<form action="/acl/add" method="POST"  onsubmit="return Validator.Validate(this)">
<table width="100%" cellspacing="0" border="0" class="adminlist">
	<thead>
    	<tr>
            <th><?php echo $this->_tpl_vars['systemLang']['parentResouces']; ?>
</th>
        	<th><?php echo $this->_tpl_vars['systemLang']['resourcesName']; ?>
</th>
        	<th><?php echo $this->_tpl_vars['systemLang']['resoucesMark']; ?>
</th>
            <th><?php echo $this->_tpl_vars['systemLang']['subMethod']; ?>
</th>
        	<th><?php echo $this->_tpl_vars['systemLang']['resoucesDesc']; ?>
</th>
        	<th><?php echo $this->_tpl_vars['systemLang']['operate']; ?>
</th>
        </tr>
    </thead>
    <tbody>
    	
    	<tr>
            <td>
            	<select name="acl[top_id]">
                	<option value="0"><?php echo $this->_tpl_vars['systemLang']['module']; ?>
</option>
                    <?php $_from = $this->_tpl_vars['aclTree']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['tmp']):
?>
                    <option value="<?php echo $this->_tpl_vars['tmp']['acl_id']; ?>
"><?php echo $this->_tpl_vars['tmp']['acl_name']; ?>

                    <?php endforeach; endif; unset($_from); ?>
                </select>
            </td>
        	<td><input type="text" name="acl[acl_name]" class="text" style="width:100px;" value="" dataType='Require' msg='<?php echo $this->_tpl_vars['systemLang']['resouceNameNotEmpty']; ?>
' /></td>
        	<td><input type="text" name="acl[acl_value]" class="text" style="width:100px;"  value=""  dataType='Custom' regexp='[a-z_]+' msg='<?php echo $this->_tpl_vars['systemLang']['resouceNameNotEmtpyEn']; ?>
'/></td>
            <td><input type="text" name="acl[acl_children]" class="text" value=""  />
        	<td><input type="text" name="acl[acl_desc]" class="text" value="" /></td>
        	<td><input type="submit" class="button" name="ng" value="<?php echo $this->_tpl_vars['systemLang']['submit']; ?>
" /></td>
        </tr>
    </tbody>
    <tfoot>
    </tfoot>
</table>
</form>